package com.ssy.lingxi.pay.api.model.vo.request;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.io.Serializable;

/**
 * 授信新增VO
 *
 * @author 伍将
 * @version 2.0.0
 * @date 2020/8/12 19:41
 */
public class CreditAddVO implements Serializable {
    private static final long serialVersionUID = -4748305593424496749L;

    /**
     * 会员id
     */
    @NotNull(message = "会员id要大于0")
    @Positive(message = "会员id要大于0")
    private Long memberId;

    /**
     * 会员角色id
     */
    @NotNull(message = "会员角色id要大于0")
    @Positive(message = "会员角色id要大于0")
    private Long roleId;

    /**
     * 父级会员id
     */
    @NotNull(message = "父级会员id要大于0")
    @Positive(message = "父级会员id要大于0")
    private Long parentMemberId;

    /**
     * 父级会员角色id
     */
    @NotNull(message = "父级会员角色id要大于0")
    @Positive(message = "父级会员角色id要大于0")
    private Long parentMemberRoleId;

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getParentMemberId() {
        return parentMemberId;
    }

    public void setParentMemberId(Long parentMemberId) {
        this.parentMemberId = parentMemberId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public Long getParentMemberRoleId() {
        return parentMemberRoleId;
    }

    public void setParentMemberRoleId(Long parentMemberRoleId) {
        this.parentMemberRoleId = parentMemberRoleId;
    }
}
